package ltd.ninefish.framework.core.exception.auth;

import cn.hutool.core.util.StrUtil;

/**
 * @author zhaoxiubin
 * create-time 2024-01-13 18:15
 * description 未能通过的权限认证异常
 **/

public class NotPermissionException extends RuntimeException
{
    private static final long serialVersionUID = 1746114084529836034L;

    public NotPermissionException(String permission)
    {
        super(permission);
    }

    public NotPermissionException(String[] permissions)
    {
        super(StrUtil.join(",", permissions));
    }
}
